package com.salton123.soulove.sailfish.db

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Index

/**
 * Time:2021/8/24 3:55 下午
 * Author:
 * Description:
 */
@Entity(
    tableName = "video_item", primaryKeys = ["filePath"],
    indices = [Index(value = ["filePath"], unique = true)]
)
data class VideoItem(
    @ColumnInfo(name = "filePath") var filePath: String = "",
    @ColumnInfo(name = "dirName") var dirName: String = "",
    @ColumnInfo(name = "name") var name: String = "",
    @ColumnInfo(name = "mimeType") var mimeType: String? = "",
    @ColumnInfo(name = "size") var size: Long,
    @ColumnInfo(name = "width") var width: Int,
    @ColumnInfo(name = "height") var height: Int,
    @ColumnInfo(name = "duration") var duration: Long,
    @ColumnInfo(name = "createdAt") var createdAt: Long,
    @ColumnInfo(name = "updatedAt") var updatedAt: Long,
    @ColumnInfo(name = "playPosition") var playPosition: Long = 0,
    @ColumnInfo(name = "letter") var letter: String = ""
)